<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/struct_info.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/submitter.js"></script>
<script src="${staticServer}/inc/js/infopad.js?2.2"></script>

<link rel="stylesheet" href="${staticServer}/css/consultant_client.css" />
	
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<script src="${staticServer}/inc/js/datepicker.js"></script>

<style>
#SWFUpload_0{
	margin-top: 70px;
    margin-left: -30px;
}
</style>
<script>


var add_Period = function(){
	var id = $("#id").val();
	var center = $("#center").val();
	var name = $("#name").val();
	var station = $("#station").val();
	var teacher_state = $("#teacher_state").val();
	var beizhu = $("#beizhu").val();
	
	if(center==""){
		infopad.err("请选择中心");
		return;
	}
	

	$.post("${contextPath}/index/addPersonnel.json", {
		    "id":id,
		    "center":center,
			"name":name,
			"center":center,
			"station":station,
			"teacher_state":teacher_state,
			"beizhu":beizhu
		}, function(ms) {
		   var msg = ms.msg;
		   if(msg!=null && msg=="1"){
			   infopad.msg("操作成功！");
			   window.location.href="${contextPath}/index/personnel_list.htm";
		   }
			
	});
}




</script>
</head>
<input type="hidden" id="id" value="<#if tgPersonnelState??>${tgPersonnelState.id}</#if>">
<body>
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>组织架构</li>
			<li>&gt;</li>
			<li class="current">title</li>
		</ul>
	</div>

	<div id="container">
		<div id="title">添加人员统计表</div>
		<table id="infotable">
			
			<tr>
				<th>中心:</th>
				<td>
					<select id="center" >
					<option value="<#if tgPersonnelState??>${tgPersonnelState.center}</#if>"><#if tgPersonnelState??>${tgPersonnelState.center}</#if></option>
	            		<#if office_List??>
	              			<#list office_List as ls>
	              				<option value="${ls.name}">${ls.name}</option>
	              			</#list>
	            		</#if>
	            	</select>	
				</td>
			</tr>
			<tr>
				<th>老师名称:</th>
				<td>
				    <select id="name" >
	                      <option value="<#if tgPersonnelState??>${tgPersonnelState.name}</#if>"><#if tgPersonnelState??>${tgPersonnelState.name}</#if></option>
		                	<#if userList??>
							<#list userList as ls>
		                		<option value="${ls.nickname}">${ls.nickname}（${ls.departments}-${ls.job}）</option>
		                	</#list>
		                </#if>
	            </select>	
				</td>
			</tr>
	         <tr>
				<th>选择岗位:</th>
				<td>
					<select id="station">
						<option value="">请选择</option>
						<option value="1">中心销售</option>
						<option value="2">销售主管</option>
						<option value="3">区域主管</option>
						<option value="4">家庭教师</option>
						<option value="5">训练老师</option>
						<option value="6">课程顾问</option>
						<option value="7">区域监管</option>
						<option value="8">培训副主管</option>
						<option value="9">在线课程顾问</option>
					</select>
				</td>
			</tr>
			<tr>
				<th>状态:</th>
				<td>
				<select id="teacher_state">

						<option value="">请选择</option>
						<option value="1">试用期</option>
						<option value="2">建议辞退</option>
						<option value="3">转正，稳定</option>
						<option value="4">转正，有离职打算</option>
						<option value="5">转正、已经提出离职</option>
						<option value="6">怀孕在岗</option>
						<option value="7">怀孕，停薪留职</option>
						<option value="8">停薪留职</option>
						<option value="9">新中心储备人员</option>
						<option value="10">临时调动中心人员</option>
						<option value="11">其他，请在备注注明</option>
					</select>
				</td>
			</tr>
			<tr>
				<th>备注:</th>
				<td>
				    <textarea name="beizhu" id="beizhu" rows="5" cols="30" value="<#if tgPersonnelState??>${tgPersonnelState.beizhu}</#if>"><#if tgPersonnelState??>${tgPersonnelState.beizhu}</#if></textarea>
				</td>
			</tr>
			
		</table>
		
		<div id="controlbar">
			<input type="button" class="submit" onclick="add_Period()" value="  保  存  " />
		</div>
	</div>
	
</body>
</html>